#!/usr/bin/env python

import socket

TCP_IP = '192.168.0.2'
TCP_PORT = 5005
BUFFER_SIZE = 1024

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))

MESSAGE = str([276.23754593+18, 119.91703619-16.7, 57.57142639, 0.66162154, 0.0, 0.0])
s.send(MESSAGE)
data = s.recv(BUFFER_SIZE)
raw_input('input anykey to next')

MESSAGE = str([351.35577807+18, 101.4178561-16.7, 57.57142639, 0.66162154, 0.0, 0.0])
s.send(MESSAGE)
data = s.recv(BUFFER_SIZE)
raw_input('input anykey to next')

MESSAGE = str([360.79541748+18, 36.44643979-16.7, 57.57142639, 0.66162154, 0.0, 0.0])
s.send(MESSAGE)
data = s.recv(BUFFER_SIZE)
raw_input('input anykey to next')


s.close()

print "received data:", data


